package com.cskaoyan.controller.indexController;

import com.cskaoyan.model.vo.BaseRespVo;
import com.cskaoyan.model.vo.index.HomeIndexVO;
import com.cskaoyan.service.index.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：Chunk
 * @Description:
 * @Date Created in 15:57 2021/4/13
 */
@RestController
@RequestMapping("wx/home")
public class WXIndexController {

    @Autowired
    HomeService homeService;

    @RequestMapping("index")
    public BaseRespVo homeindex(){
        HomeIndexVO homeIndexVO = homeService.index();
        return BaseRespVo.ok(homeIndexVO);
    }
}
